<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>Insert title here</title>
<style type="text/css">
ul li {
	list-style: none;
	height: 30px;
}

input[type="submit"] {
	text-align: center;
	background-color: blueviolet;
	width: 70px;
	height: 30px;
}
</style>
<script type="text/javascript">
	function doCheck() {
		var name = document.getElementById("txtUsername").value;
		var pwd = document.getElementById("txtPassword").value;

		if (name.length <= 0 || pwd.length <= 0) {
			alert("请填写完整！");
			return false
		}
	
		return true
	}
</script>
</head>
<body>
	<form method="post" action="LoginControl.jsp" onsubmit="return doCheck()">
		<ul style="text-align: center;">
			<li>登录账号：<input type="text" name="txtUsername" id="txtUsername"></li>
			<li>密 码：<input type="password" name="txtPassword"
				id="txtPassword"></li>
			<li>验 证 码： <img alt="" src="ValidateImg.jsp">
			</li>
			<li><input name="Vilidate" type="text" value="" /></li>
			<li><input type="submit" value="登录"></li>
		</ul>
	</form>
</body>
</html>